package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户佣金记录对象 p_user_brokerage_record
 *
 * @author ruoyi
 * @date 2022-07-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("p_user_brokerage_record")
public class PUserBrokerageRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    /**
     * 记录id
     */
    @TableId(value = "id")
    private Long id;
    /**
     * 用户uid
     */
    private Long uid;
    /**
     * 咨询订单id
     */
    private Long orderId;
    /**
     * 0 收入 1 支出
     */
    @ApiModelProperty(value = "明细类型 0 收入 1 支出")
    private String type;
    /**
     * 标题
     */
    @ApiModelProperty(value = "标题")
    private String title;
    /**
     * 佣金
     */
    @ApiModelProperty(value = "佣金")
    private BigDecimal price;
    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String mark;
    /**
     * 分销等级
     */
    private Integer brokerageLevel;

    @TableField(exist = false)
    @ApiModelProperty(value = "头像")
    private String avatar;

    @TableField(exist = false)
    @ApiModelProperty(value = "姓名")
    private String username;

    @TableField(exist = false)
    @ApiModelProperty(value = "咨询类型")
    private String askTitle;

    @TableField(exist = false)
    @ApiModelProperty(value = "下单时间")
    private Date orderTime;

    @TableField(exist = false)
    @ApiModelProperty(value = "订单实际付款")
    private BigDecimal actualPrice;

    @TableField(exist = false)
    @ApiModelProperty(value = "个人简介")
    private String descInfo;

    @TableField(exist = false)
    @ApiModelProperty(value = "咨询师级别")
    private String levelInfo;

    @TableField(exist = false)
    @ApiModelProperty(value = "擅长领域")
    private String hobby;
}
